package com.ewhome.apartment.mvp.ui.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.alibaba.android.vlayout.DelegateAdapter;
import com.alibaba.android.vlayout.LayoutHelper;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ewhome.apartment.R;
import com.jess.arms.utils.ArmsUtils;

/**
 * author:zhangjing
 * 作用:
 * return:
 */

public class LocationTitAdapter extends DelegateAdapter.Adapter<BaseViewHolder>{
    private Context context;
    private LayoutHelper layoutHelper;

    public LocationTitAdapter(Context context, LayoutHelper layoutHelper) {
        this.context = context;
        this.layoutHelper = layoutHelper;
    }

    @Override
    public LayoutHelper onCreateLayoutHelper() {
        return layoutHelper;
    }

    @Override
    public BaseViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view= ArmsUtils.inflate(context, R.layout.location_title);
        return new BaseViewHolder(view);
    }

    @Override
    public void onBindViewHolder(BaseViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 1;
    }
}
